<?php
/**
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
 *
 * @copyright   The XOOPS project http://www.xoops.org/
 * @license     http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL)
 * @package     installer
 * @since       2.3.0
 * @author      Haruki Setoyama  <haruki@planewave.org>
 * @author      Kazumi Ono <webmaster@myweb.ne.jp>
 * @author      Skalpa Keo <skalpa@xoops.org>
 * @author      Taiwen Jiang <phppp@users.sourceforge.net>
 * @author      DuGris (aka L. JEN) <dugris@frxoops.org>
 * @version     $Id: page_start.php 1429 2008-04-02 12:27:19Z phppp $
**/

require_once 'common.inc.php';
if ( !defined('XOOPS_INSTALL') ) { die('XOOPS Installation wizard die'); }

$wizard->setPage( 'start' );
$pageHasForm = false;

$content = "";
include "./language/$wizard->language/welcome.php";

$writable = "<ul class='confirmMsg'>";
foreach ($wizard->writable as $key => $value) {
	if ( is_dir( '../' . $value ) ) {
		$writable .= "<li class='directory'>$value</li>";
	} else {
		$writable .= "<li class='files'>$value</li>";
	}
}
$writable .= "</ul>";

$xoops_trust = "<ul class='confirmMsg'>";
foreach ($wizard->xoopsPathDefault as $key => $value) {
	$xoops_trust .= "<li class='directory'>$value</li>";
}
$xoops_trust .= "</ul>";

$writable_trust = "<ul class='confirmMsg'>";
foreach ($wizard->dataPath as $key => $value) {
	$writable_trust .= "<li class='directory'>" . $wizard->xoopsPathDefault['data']  . '/' . $key . "</li>";
	if ( is_array($value) ) {
		foreach ( $value as $key2 => $value2 ) {
			$writable_trust .= "<li class='directory'>" . $wizard->xoopsPathDefault['data']  . '/' . $key . '/' .$value2 . "</li>";
		}
	}
}
$writable_trust .= "</ul>";

$content = sprintf( $content, $writable, $xoops_trust, $writable_trust ) ;

include 'install_tpl.php';

?>
